<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/vectrics.tld" prefix="vectrics" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ page import="org.vectrics.recruiter.config.RecruitConfig" %>


<vectrics:errors/>
<%
	boolean userMustAnswerQuestion = RecruitConfig.getRecruitInstance().getAnswerQuestionForEmailPassword();
%>

<% if (userMustAnswerQuestion) { %>
	<html:form action="/public/getHintAnswer" method="POST" focus="emailAddress">
<% } else { %>
	<html:form action="/public/emailpassword_noquest" method="POST" focus="emailAddress">
<% } %>
	<table>
		<tr>
			<td valign="TOP">
				<table width="600" cellpadding="4" cellspacing="1">

					<tr>
						<td class="formBg2" valign="top">
							<font class="formLabelClass"><bean:message key="prompt.email"/></font>
							<vectrics:errors property="emailAddress"/>
						</td>
						<td class="formBg2" valign="top">
							<html:text property="emailAddress" styleClass="formEditClass" maxlength="30"/>
						</td>
					</tr>
					
					<tr>
						<td valign="TOP" align="left"></td>
						<td valign="TOP" align="left">
							<vectrics:formButton name="submit.email.address" code="button.ok" phraseCode="button.ok" value="submit.email.address"/>
							&nbsp;
							<vectrics:formButton name="cancel" code="button.cancel" phraseCode="button.cancel" value="cancel"/>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</html:form>

